package com.example.livereplay.common.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

@Data
@EqualsAndHashCode
public class InsertCommentRequest {
    @Schema(description = "用户id")
    @NotEmpty(message = "用户id不能为空")
    private String userId;

    @Schema(description = "视频时间点")
    @NotEmpty(message = "视频时间点不能为空")
    private Long time;

    @Schema(description = "视频id")
    @NotEmpty(message = "视频id不能为空")
    private String attachmentId;

    @Schema(description = "评论内容")
    @NotEmpty(message = "评论内容不能为空")
    private String comment;
}
